import 'package:carousel_slider/carousel_slider.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:industry_net/base/common/colors_util.dart';
import 'package:industry_net/base/common/icon_util.dart';
import 'package:industry_net/base/common/img_util.dart';
import 'package:industry_net/base/common/location/controller.dart';
import 'package:industry_net/base/common/size_fit.dart';
import 'package:industry_net/base/common/text_util.dart';
import 'package:industry_net/base/component/component.dart';
import 'package:industry_net/base/component/marquee/view.dart';
import 'package:industry_net/pages/home/main/controller.dart';
import 'package:marquee/marquee.dart';
part 'appbar.dart';
part 'header_menu.dart';
part 'fast_news.dart';
part 'recomend.dart';
part 'header_news.dart';

class HomeHeader extends StatelessWidget {
  const HomeHeader({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: ColorsUtil.white,
      child: Column(
        children: [
          HomeTopView(),
          const FastNewsView(),
          const RecomendView(),
          const NewsView(),
          // DropdownButton(
          //   icon: Icon(
          //     IconUtil.add_circle,
          //     size: 20.w,
          //     color: ColorsUtil.title,
          //   ),
          //   items: ['扫一扫', '添加']
          //       .map(
          //         (e) => DropdownMenuItem(
          //           value: e,
          //           child: Text(
          //             e,
          //             style: pfMediumStyle(
          //                 color: ColorsUtil.title, fontSize: font12),
          //           ),
          //         ),
          //       )
          //       .toList(),
          //   value: '扫一扫',
          // ),
          // CupertinoActivityIndicator(),
          SizedBox(
            height: 20.w,
          )
        ],
      ),
    );
  }
}
